import { request } from "@/utils/service";

/** 获取登录验证码 */
export function getLoginCodeApi() {
  return request({
    url: "login/code",
    method: "get",
  });
}

/** 登录并返回 Token */
export function loginApi(data) {
  return request({
    url: "/api/login",
    method: "post",
    data,
  });
}

/** 获取用户详情 */
export function getUserInfoApi() {
  return request({
    url: "/api/user",
    method: "get",
  });
}
